#include "UI.h"

UI::UI() {}

UI::~UI() {}

string UI::readUserInput(string userInput) {
	stringstream userFeedback;

	userFeedback << logic.executeUserCommand(userInput, taskList);
	userFeedback << endl;
	userFeedback << displayTasks();

	return userFeedback.str();
}

string UI::displayTasks() {
	stringstream displayString;

	for(unsigned int i=0; i<taskList.size(); i++) {
		displayString << i+1 << ". " << taskList[i].getTaskName() << ", start:" 
			<< taskList[i].getStartDateTime() << " end: " << taskList[i].getEndDateTime() << endl;
	}

	return displayString.str();
}